package com.tianze.tzkf.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.tianze.tzkf.MainActivity;

/**
 *  Creat JY BY 2019/1/4
 *  接收系统发出的开机消息
 *  用于开机自启动
 */

public class BootBroadcastReceiver extends BroadcastReceiver {

    public static final String action_boot = "android.intent.action.BOOT_COMPLETED";


    @Override
    public void onReceive(Context context, Intent intent){
//        if(intent.getAction().equals(action_boot)){
//            Intent ootStartIntent = new Intent(context,MainActivity.class);
//            ootStartIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
//            context.startActivity(ootStartIntent);
//
//        }
    }

}
